package com.weitu.environmental.waterWaste.service.impl;

import com.weitu.environmental.waterWaste.entity.WaterWasteRegistration;
import com.weitu.environmental.waterWaste.mapper.WaterWasteRegistrationMapper;
import com.weitu.environmental.waterWaste.service.WaterWasteRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-05-02
 */
@Service
public class WaterWasteRegistrationServiceImpl implements WaterWasteRegistrationService {

    private final WaterWasteRegistrationMapper waterWasteRegistrationMapper;

    @Autowired
    public WaterWasteRegistrationServiceImpl(WaterWasteRegistrationMapper waterWasteRegistrationMapper) {
        this.waterWasteRegistrationMapper = waterWasteRegistrationMapper;
    }

    @Override
    public List<WaterWasteRegistration> findByParam(Map paramMap) {
        return waterWasteRegistrationMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return waterWasteRegistrationMapper.findByParamCount(paramMap);
    }

    @Override
    public WaterWasteRegistration findById(String id) {
        return waterWasteRegistrationMapper.findById(id);
    }

    @Override
    public Integer add(Map paramMap) {
        return waterWasteRegistrationMapper.add(paramMap);
    }

    @Override
    public Integer updateById(Map paramMap) {
        return waterWasteRegistrationMapper.updateById(paramMap);
    }
}
